﻿using System;
using System.Web.DynamicData;
using System.Web.DynamicData.ModelProviders;

namespace NotAClue.Web.DynamicData
{
    public class SecureMetaModel : MetaModel
    {
        public Boolean EnableChildrenNavigation { get; set; }
        public Boolean EnableForeighKeyNavigation { get; set; }
        public Boolean ShowChildrenColumns { get; set; }

        public SecureMetaModel()
        {
            EnableChildrenNavigation = true;
            EnableForeighKeyNavigation = true;
            ShowChildrenColumns = true;
        }

        /// <summary>
        /// Creates the table.
        /// </summary>
        /// <param name="provider">The provider.</param>
        /// <returns></returns>
        protected override MetaTable CreateTable(TableProvider provider)
        {
            return new SecureMetaTable(this, provider);
        }
    }
}
